<template>
  <div class="home">
      <!-- 今日总计 -->
    <el-row>
      <el-row>
        <el-col :span="6" :offset="2">
          <el-card class="box-card">
            <div slot="header" class="clearfix card-header">
              <h4>后台项目</h4>
            </div>
            <div class="text item">
              <a href="#">mall</a>
            </div>
          </el-card>
        </el-col>
        <el-col :span="6" :offset="1">
          <el-card class="box-card">
            <div slot="header" class="clearfix card-header">
              <h4>前端项目</h4>
            </div>
            <div class="text item">
              <a href="#">mall-admin-web</a>
            </div>
          </el-card>
        </el-col>
        <el-col :span="6" :offset="1">
          <el-card class="box-card">
            <div slot="header" class="clearfix card-header">
              <h4>学习教程</h4>
            </div>
            <div class="text item">
              <a href="#">mall-learning</a>
            </div>
          </el-card>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="6" :offset="2">
          <el-card class="box-card card-item">
            <div class="text item">
              <el-col :span="7">
                <i class="el-icon-document card-icon"></i>
              </el-col>
              <el-col :span="12">
                <div class="card-text">
                  <p>今日订单总数</p>
                  <p>200</p>
                </div>
              </el-col>
            </div>
          </el-card>
        </el-col>
        <el-col :span="6" :offset="1">
          <el-card class="box-card card-item">
            <div class="text item">
              <el-col :span="7">
                <i class="el-icon-medal card-icon"></i>
              </el-col>
              <el-col :span="12">
                <div class="card-text">
                  <p>今日销售总额</p>
                  <p>￥5000.00</p>
                </div>
              </el-col>
            </div>
          </el-card>
        </el-col>
        <el-col :span="6" :offset="1">
          <el-card class="box-card card-item">
            <div class="text item">
              <el-col :span="7">
                <i class="el-icon-coin card-icon"></i>
              </el-col>
              <el-col :span="12">
                <div class="card-text">
                  <p>昨日销售总额</p>
                  <p>￥5000.00</p>
                </div>
              </el-col>
            </div>
          </el-card>
        </el-col>
      </el-row>
    </el-row>
      <!-- 待处理事务 -->
    <el-row>
      <br>
      <el-col :span="20" :offset="2">
        <el-card class="box-card">
          <div slot="header" class="clearfix card-header">
            <h4>待处理事务</h4>
          </div>
          <div class="text item">
            <el-col :span="7">
              <ul>
                <li>
                  <span>待付款订单</span>
                  <span>(10)</span>
                </li>
                <li>
                  <span>待发货订单</span>
                  <span>(10)</span>
                </li>
                <li>
                  <span>已发货订单</span>
                  <span>(10)</span>
                </li>
              </ul>
            </el-col>
            <el-col :span="7" :offset="1">
              <ul>
                <li>
                  <span>已完成订单</span>
                  <span>(10)</span>
                </li>
                <li>
                  <span>新缺货登记</span>
                  <span>(10)</span>
                </li>
                <li>
                  <span>待处理退货订单</span>
                  <span>(10)</span>
                </li>
              </ul>
            </el-col>
            <el-col :span="7" :offset="1">
              <ul>
                <li>
                  <span>待确认收货订单</span>
                  <span>(10)</span>
                </li>
                <li>
                  <span>待处理退款申请</span>
                  <span>(10)</span>
                </li>
                <li>
                  <span>广告位即将到期</span>
                  <span>(10)</span>
                </li>
              </ul>
            </el-col>
          </div>
        </el-card>
      </el-col>
    </el-row>
      <!-- 商品及用户总览 -->
    <el-row>
      <el-col :span="9" :offset="2">
        <el-card class="box-card">
          <div slot="header" class="clearfix card-header">
            <h4>后台项目</h4>
          </div>
          <div class="text item">
            <a href="#">mall</a>
          </div>
        </el-card>
      </el-col>
      <el-col :span="9" :offset="2">
        <el-card class="box-card">
          <div slot="header" class="clearfix card-header">
            <h4>后台项目</h4>
          </div>
          <div class="text item">
            <a href="#">mall</a>
          </div>
        </el-card>
      </el-col>
    </el-row>
      <!-- 订单统计 -->
    <el-row>

    </el-row>
  </div>
</template>

<script>
  export default {
    name:'Home'
  }
</script>

<style lang="less" scoped>
a{
  text-decoration: none;
  color: #409eff;
}
h4{
  color:#606266
}
// .box-card{
//   width: 300px;
// }
/deep/ .el-card__header{
  background: #f2f6fc;
}
.card-icon{
  font-size: 80px;
  color: #409eff;
}
.card-item{
  padding: 5px 0px 20px;
  margin-top: 20px;
  .card-text{
    margin-top: 20px;
    color:#606266
  }
  .card-text p:first-of-type{
    font-size: 18px;
    color: #909399;
    margin-bottom: 5px;

  }
}
.box-card ul{
  margin-bottom: 20px;
}
.box-card li{
  list-style: none;
  height: 40px;
  line-height: 40px;
  border-bottom: 1px solid #909399;
}
.box-card li span{
  float: left;
}
.box-card li span:last-of-type{
  float: right;
  color: red;
}
</style>